package com.example.flower_shop.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.flower_shop.entity.Article;
import com.example.flower_shop.vo.article.*;
import org.apache.ibatis.annotations.Param;

public interface ArticleMapper extends BaseMapper<Article> {

    IPage<ArticlePageResp> pageQuery(Page<ArticlePageResp> page, @Param("req") ArticlePageReq req);

    ArticleRespVO getArticle(@Param("articleId") Long articleId);

    IPage<UsrArtPageResp> usrPageQuery(Page<UsrArtPageResp> page, @Param("req") UsrArticlePageReq req);
}
